﻿using Marmat.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Marmat.Template.WinForm
{
    internal class DefaultViewFormRoute : IViewFormRoute
    {

        internal DefaultViewFormRoute(Foundation.IViewFormController controller, Control control)
        {
            this.Control = control;
            this.Controller = controller;
        }

        public Foundation.IViewFormController Controller { get; set; }

        public Control Control { get; set; }

        public Foundation.IViewFormController GetController()
        {
            return this.Controller;
        }

        public Control GetViewPanel()
        {
            return this.Control;
        }
    }
}
